package com.example.testapp.model;

import java.math.BigDecimal;

public class BookData {

    private Integer id;         // 账单ID
    private Byte type;          // 0：收入，1：支出
    private String bookDate;    // 记账日期，格式如 "2024-05-30"
    private String category;    // 分类，如“餐饮”、“工资”
    private BigDecimal price;   // 金额
    private String remark;      // 备注
    private Integer userId;     // 用户ID（如果后端返回）
    private String source;    // 来源

    // Getter 和 Setter
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Byte getType() {
        return type;
    }

    public void setType(Byte type) {
        this.type = type;
    }

    public String getBookDate() {
        return bookDate;
    }

    public void setBookDate(String bookDate) {
        this.bookDate = bookDate;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getSource() {
        return source;
    }
}